package test3;

public class TestDemo1 {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        BTNode root=binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.lastOrder(root);
        System.out.println();
        System.out.println(binaryTree.getLeatNodeCount(root));
        System.out.println();
        System.out.println(binaryTree.getKLevelNodeCount(root,3));
        System.out.println("====");
        System.out.println(binaryTree.find(root,'Q'));


    }
}
